//**************************************************************************
//  Dictionary.java   Java  Foundations
//
//  Represents a dictionary,which is a book .Used to demonstrate
//  inheritance.
//**************************************************************************

public class Dictionary extends Book
{
  private int definitions = 52500;

  //-----------------------------------------------------------
  //  Print a message using both local and inherited value.
  //-----------------------------------------------------------
  public double computeRatio ()
  {
     return definitions/pages;
  }
   //---------------------------------------------------------------
   // Definitions mutator.
   //---------------------------------------------------------------
   public void setDefinitions (int numDefinitions)
   {
     definitions = numDefinitions;
   }
   //----------------------------------------------------------------
   //  Definitions accessor.
   //----------------------------------------------------------------
   public int getDefinitions ()
   {
     return definitions;
   }
}
